<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
define('NOSESSION',true);
define('TC_API',true);
require_once '../core/core.php';
set_exi(function($message,$type,$action,$url){
	ob_clean();
	if($type=='error'){		
		exit('');
	}else{
		$message=ijson_encode($message);
		exit($message);
	}
	
});
if(!$_RQ['p']){
	exit('非法访问，只接受插件的发起！');
}
if($_RQ['i']){
	$_SESSION['uniacid']=intval($_RQ['i']);
}
if($_RQ['p']){
	$a=$_RQ['a']?:'api';
	$file=ROOT_D.'/addons/'.$_RQ['p'].'/'.$a.'.php';
	if(file_exists($file)) {
		require_once $file;
	}
}
exit('success');